<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MongoManager
 *
 * @author erick
 */
class MongoManager {
    
    private static $mongoconection;
    
    static function getConention(){
        
        if (  !self::$mongoconection instanceof Mongo_db) 
        {  
            $db_name = sfConfig::get("app_mongodb_name");
            self::$mongoconection = new Mongo_db($db_name); 
        } 
          return self::$mongoconection; 
    }
    
    

}

?>
